package com.after.saas.system.converter;

import com.after.saas.common.model.bo.OkxCoinBO;
import com.after.saas.common.model.bo.OkxMoneyBO;
import com.after.saas.system.model.OkxCoin;
import com.after.saas.system.model.OkxMoney;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @Classname UserConverter
 * @Description TODO
 * @auth after
 * @since 2023/6/11 12:14
 */
@Mapper
public interface OkxConverter {

    OkxConverter INSTANCE = Mappers.getMapper(OkxConverter.class);

    @Mapping(target = "account", defaultValue = "2752052809@qq.com")
    OkxMoney toOkxMoneyEntity(OkxMoneyBO moneyBO);

    List<OkxMoney> toOkxMoneyEntityList(List<OkxMoneyBO> moneyBOS);

    @Mapping(target = "account", defaultValue = "2752052809@qq.com")
    OkxCoin toOkxCoinEntity(OkxCoinBO coinBO);

    List<OkxCoin> toOkxCoinEntityList(List<OkxCoinBO> coinBOS);


}
